#include <QtTest>
#include <QtCore>

class testDate : public QObject
{
  Q_OBJECT
private slots:
  void testValidity();
  void testMonth();
};

void testDate::testValidity()
{
  //11 March 1967
  QDate date(1967, 3, 11);
  QVERIFY(date.isValid());
}

void testDate::testMonth()
{
  //11 May 1967
  QDate date;
  date.setYMD(1967, 5, 11);
  QCOMPARE(date.month(), 5);
  QCOMPARE(QDate::longMonthName(date.month()), QString("Mai"));
}

QTEST_MAIN(testDate);

#include "shelltest.moc"